package aybolit.core.objects.model;
// Generated 27.02.2013 9:15:35 by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Status generated by hbm2java
 */
@Entity
@Table(name="status"
    ,catalog="aybolit"
)
public class Status  implements java.io.Serializable {


     private Integer statusId;
     private String name;
     private String note;
     private Integer deleted;
     private Set<Hospitales> hospitaleses = new HashSet<Hospitales>(0);
     private Set<Departments> departmentses = new HashSet<Departments>(0);

    public Status() {
    }

    public Status(String name, String note, Integer deleted, Set<Hospitales> hospitaleses, Set<Departments> departmentses) {
       this.name = name;
       this.note = note;
       this.deleted = deleted;
       this.hospitaleses = hospitaleses;
       this.departmentses = departmentses;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="status_id", unique=true, nullable=false)
    public Integer getStatusId() {
        return this.statusId;
    }
    
    public void setStatusId(Integer statusId) {
        this.statusId = statusId;
    }
    
    @Column(name="name", length=500)
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="note", length=2000)
    public String getNote() {
        return this.note;
    }
    
    public void setNote(String note) {
        this.note = note;
    }
    
    @Column(name="deleted")
    public Integer getDeleted() {
        return this.deleted;
    }
    
    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="status")
    public Set<Hospitales> getHospitaleses() {
        return this.hospitaleses;
    }
    
    public void setHospitaleses(Set<Hospitales> hospitaleses) {
        this.hospitaleses = hospitaleses;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="status")
    public Set<Departments> getDepartmentses() {
        return this.departmentses;
    }
    
    public void setDepartmentses(Set<Departments> departmentses) {
        this.departmentses = departmentses;
    }




}


